package cn.dujc.superkid.activities;

import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;

import cn.dujc.core.ui.BaseActivity;
import cn.dujc.superkid.R;
import cn.dujc.superkid.URLImageParser;

/**
 * Created by Administrator on 2018/10/12 0012.
 */

public class AnalysisActivity extends BaseActivity {
    TextView titleView;
    TextView analysisView;
    @Override
    public int getViewId() {
        return R.layout.activity_analysis;
    }

    @Override
    public void initBasic(Bundle savedInstanceState) {
        Intent intent=getIntent();
        titleView=findViewById(R.id.analysis_title);
        analysisView=findViewById(R.id.analysis_content);
        String titleText=intent.getStringExtra("title");
        titleView.setText(Html.fromHtml(titleText));
        String analysisText=intent.getStringExtra("content");
        analysisView.setText(Html.fromHtml(analysisText));
//        URLImageParser imageGetter = new URLImageParser(titleView);
        analysisView.setText(Html.fromHtml(analysisText));

    }
}
